<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 300px;
            height: 300px;
            background-color: red;
            /* transform: scaleX(0.5) rotate(45deg);先压缩再旋转  */
            transform: rotate(45deg) scaleX(0.5);/*先旋转再压缩*/
            /* margin: 100px auto; */
            /* transition: all 1s; */
            /* transform-origin: right bottom; */
        }
        .box:hover{
            transform: skew(0deg,30deg);
        }
    </style>
</head>
<body>
    <div class="box"></div>
</body>
</html>